package cn.com.kh;

/**
 * @projectName: ngsapitask-pa
 * @package: cn.com.dev
 * @className: LogStatement
 * @author: LiJT
 * @description: TODO
 * @date: 2023-08-18 14:51
 * @version: 1.0
 */
public class LogStatement {
    private String date;    //日期
    private String time;    //时间
    private String user;    //用户
    private String host;    //主机名
    private String TheadId;    //线程ID
    private String schema;    //查询的数据库

    private String queryTime;    //查询时间
    private String row_sent;    //返回的行数
    private String row_examined;//检索的行数
    private String sql;            //SQL语句
    private String orderFlag;    //排序字段

    @Override                //格式化打印语句
    public String toString() {
        return date + " " + time + " " + user + "" + host + " Thead_id:" + TheadId + " " + schema + " " + queryTime + "s Rows_sent/Rows_examined:" + row_sent + "/" + row_examined + " ###" + sql;
    }

    //构造方法，可根据实际情况生成其他的构造方法
    public LogStatement(String date, String time) {
        this.date = date;
        this.time = time;
    }

    //后面都是getter和setter
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getTheadId() {
        return TheadId;
    }

    public void setTheadId(String theadId) {
        TheadId = theadId;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getQueryTime() {
        return queryTime;
    }

    public void setQueryTime(String queryTime) {
        this.queryTime = queryTime;
    }

    public String getRow_sent() {
        return row_sent;
    }

    public void setRow_sent(String row_sent) {
        this.row_sent = row_sent;
    }

    public String getRow_examined() {
        return row_examined;
    }

    public void setRow_examined(String row_examined) {
        this.row_examined = row_examined;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getOrderFlag() {
        return orderFlag;
    }

    public void setOrderFlag(String orderFlag) {
        this.orderFlag = orderFlag;
    }
}
